export default {
  install(Vue) {
    Vue.$pub = Vue.prototype.$pub = {
      login() {
        // to login
        location.href = "/#/login";
      },
      logout() {
        return new Promise((resolve, reject) => {
            // to logout
        });
      },
    };
  },
};
